Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Fix paths in .pc files #1084

Closed

Conversation

lheckemann
Copy link

Backport of #815.

It is not generally true that CMAKE_INSTALL_<dir> variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files

With 0b26a9d,
CMake concatenates ${prefix} with the GNUInstallDirs variables, which leads to
includedir=${prefix}/nix/store/x6wqbsys0px1xjpy17h01f0aqwj7khvg-openexr-2.5.2-dev/include,
when the variables are absolute.

Let's join them properly as paths, not strings.

Signed-off-by: Jan Tojnar [email protected]

(cherry picked from commit 023e879)

It is not generally true that `CMAKE_INSTALL_<dir>` variables are relative paths:

https://github.com/jtojnar/cmake-snips#concatenating-paths-when-building-pkg-config-files

With AcademySoftwareFoundation@0b26a9d,
CMake concatenates ${prefix} with the GNUInstallDirs variables, which leads to
`includedir=${prefix}/nix/store/x6wqbsys0px1xjpy17h01f0aqwj7khvg-openexr-2.5.2-dev/include`,
when the variables are absolute.

Let's join them properly as paths, not strings.

Signed-off-by: Jan Tojnar <[email protected]>

(cherry picked from commit 023e879)
@linux-foundation-easycla
Copy link

CLA Not Signed

@lheckemann
Copy link
Author

Never mind, the issue is fixed by 2f19a01

@lheckemann lheckemann closed this Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants